package pers.vic.test.config.aspect;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import pers.vic.boot.base.aspect.RepeatCommitVersionAspect;
import pers.vic.boot.base.aspect.RequestLogPrintAspect;

/**
 * 描述:
 * @author Vic.xu
 * @date 2022-03-16 10:01
 */
@Configuration
public class AspectConfig {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Bean
    public RequestLogPrintAspect requestLogPrintAspect() {
        logger.info("register RequestLogPrintAspect");
        return new RequestLogPrintAspect();
    }

    @Bean
    public RepeatCommitVersionAspect repeatCommitVersionAspect() {
        return new RepeatCommitVersionAspect();
    }
}
